home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / golf / customiz.txt < prev    next >
Text File  |  1995-04-02  |  2KB  |  54 lines

  1. CUSTOMIZING GOLF 
  2.  
  3. You can customize Golf by creating your own background pictures (bitmaps).  You can make these pictures with any program that can create .BMP files.  Paintbrush, which comes with MS Windows, will work fine.
  4.  
  5. To create a picture that works correctly with Golf, you must follow a few simple rules:
  6.  
  7. The picture must be 250 pixels wide and 400 pixels high.
  8.  
  9. Golf detects objects by their color.  The picture you create should use only the 16 standard VGA colors.  Certain colors are reserved for specific objects, and should not be used elsewhere on the picture. 
  10.  
  11. Follow these color guidelines [each color is followed by its exact color value in RGB (Red-Green-Blue) format]:
  12.  
  13. Trees: 
  14.     Black: RGB (0,0,0) 
  15.     Brown: RGB (128,128,0)
  16.  
  17. Sand Traps (Bunkers):
  18.     White: RGB(255,255,255) 
  19.     Yellow: RGB(255,255,0)
  20.  
  21. Water Hazards:
  22.     Blue: RGB(0,0,255) 
  23.     Dark Blue: RGB(0,0,128) 
  24.     Dark Cyan: RGB(0,128,128)
  25.  
  26. The Hole:
  27.     Red: RGB(255,0,0)
  28.  
  29. TIPS:
  30.  
  31. - Use the existing holes as a guide when creating new ones.  
  32.  
  33. - Notice that trees can contain other colors, but should have a high density of brown and black.
  34.  
  35. GETTING GOLF TO RECOGNIZE YOUR PICTURES:
  36.  
  37. Once you've created a new picture, save it and put it in the same directory that Golf is located.  In that directory, you'll find a file named GAMEINFO.TXT.  Use Windows Notepad to add an entry similar to the one shown here:
  38.  
  39. NEW HOLE
  40. FILE: FAIRWY01.BMP
  41. TEE: 127,351
  42. PAR: 3
  43.  
  44. Each new entry should start with the words "NEW HOLE" on a single line.
  45.  
  46. Your picture's file name should go on the next line, prefaced by the keyword "FILE" and a colon.
  47.  
  48. The x and y coordinates for your tee should be placed on the line prefaced "TEE:".  The tee is the initial location of your ball.  You can determine these coordinates by loading your picture into Paintbrush, selecting the "Cursor Position" command from Paintbrush's View menu, and moving the mouse over the location where you want the tee placed.  The x-y coordinates are displayed by Paintbrush in a small window.
  49.  
  50. The "PAR:" entry indicates the number of strokes you think it should take to successfully complete this hole.  Since scoring is based on this, try to make the par a realistic value.
  51.  
  52. Once you've added these lines, save GAMEINFO.TXT and start Golf.  Your hole will now be part of the course!   
  53.  
  54.